Bu veri setinde dünya çapındaki oyun satışlarının eleştirmen puanlarına göre ne kadar etkilendiği araştırılmak istenmektedir. Buna ek olarak Lojistik Regresyon bölümünde ise bir oyunun, seri oyunu olup olmamasının satışlar üzerinde nasıl bir etkisi olduğu incelenecektir.
using Pkg
Pkg.add("CSV")
Pkg.add("DataFrames")
Resolving package versions... No Changes to `C:\Users\atama\.julia\environments\v1.9\Project.toml` No Changes to `C:\Users\atama\.julia\environments\v1.9\Manifest.toml` Resolving package versions... No Changes to `C:\Users\atama\.julia\environments\v1.9\Project.toml` No Changes to `C:\Users\atama\.julia\environments\v1.9\Manifest.toml`
# Data .csv formatında eklenecektir:
using CSV
using DataFrames
games = CSV.read("Tagged-Data-Final.csv",DataFrame)
| Name | Year_of_Release | Genre | Publisher | |
|---|---|---|---|---|
| String | Float64 | String15 | String | |
| 1 | .hack//Infection Part 1 | 2002.0 | Role-Playing | Atari |
| 2 | .hack//Mutation Part 2 | 2002.0 | Role-Playing | Atari |
| 3 | .hack//Outbreak Part 3 | 2002.0 | Role-Playing | Atari |
| 4 | [Prototype] | 2009.0 | Action | Activision |
| 5 | [Prototype] | 2009.0 | Action | Activision |
| 6 | [Prototype 2] | 2012.0 | Action | Activision |
| 7 | [Prototype 2] | 2012.0 | Action | Activision |
| 8 | [Prototype 2] | 2012.0 | Action | Activision |
| 9 | 007: Quantum of Solace | 2008.0 | Action | Activision |
| 10 | 007: Quantum of Solace | 2008.0 | Action | Activision |
| 11 | 007: Quantum of Solace | 2008.0 | Action | Activision |
| 12 | 007: Quantum of Solace | 2008.0 | Action | Activision |
| 13 | 007: The World is not Enough | 2000.0 | Action | Electronic Arts |
| 14 | 007 Racing | 2000.0 | Racing | Electronic Arts |
| 15 | 100 Classic Books | 2008.0 | Misc | Nintendo |
| 16 | 15 Days | 2009.0 | Adventure | DTP Entertainment |
| 17 | 1701 A.D. | 2006.0 | Simulation | Deep Silver |
| 18 | 187: Ride or Die | 2005.0 | Racing | Ubisoft |
| 19 | 187: Ride or Die | 2005.0 | Racing | Ubisoft |
| 20 | 18 Wheeler: American Pro Trucker | 2001.0 | Racing | Acclaim Entertainment |
| 21 | 18 Wheeler: American Pro Trucker | 2002.0 | Racing | Acclaim Entertainment |
| 22 | 1 vs. 100 | 2008.0 | Misc | DSI Games |
| 23 | 2002 FIFA World Cup | 2002.0 | Sports | Electronic Arts |
| 24 | 2002 FIFA World Cup | 2002.0 | Sports | Electronic Arts |
| 25 | 2002 FIFA World Cup | 2002.0 | Sports | Electronic Arts |
| 26 | 2010 FIFA World Cup South Africa | 2010.0 | Sports | Electronic Arts |
| 27 | 2010 FIFA World Cup South Africa | 2010.0 | Sports | Electronic Arts |
| 28 | 2010 FIFA World Cup South Africa | 2010.0 | Sports | Electronic Arts |
| 29 | 2010 FIFA World Cup South Africa | 2010.0 | Sports | Electronic Arts |
| 30 | 2014 FIFA World Cup Brazil | 2014.0 | Sports | Electronic Arts |
| ⋮ | ⋮ | ⋮ | ⋮ | ⋮ |
# Veri seti incelendiğinde son 3 değişken için kayıp gözlem olduğu gözükmektedir ancak, bahsedilmek istenen durum evet-hayır şeklinde gösterilmek yerine; evet için "x" yazılmış, hayır için herhangi bir değer yazılmayacak şekilde ayarlanmış.
a= size(games)
b= names(games)
c= describe(games)
println(a)
println(b)
println(c)
(6894, 18) ["Name", "Year_of_Release", "Genre", "Publisher", "NA_Sales", "EU_Sales", "JP_Sales", "Other_Sales", "Global_Sales", "Critic_Score", "Critic_Count", "User_Score", "User_Count", "Developer", "Rating", "Story Focus", "Gameplay Focus", "Series"] 18×7 DataFrame Row │ variable mean min median max nmissing eltype │ Symbol Union… Any Union… Any Int64 Type ─────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── 1 │ Name .hack//Infection Part 1 uDraw Studio: Instant Artist 0 String 2 │ Year_of_Release 2007.48 1985.0 2007.0 2016.0 0 Float64 3 │ Genre Action Strategy 0 String15 4 │ Publisher 10TACLE Studios inXile Entertainment 0 String 5 │ NA_Sales 0.39092 0.0 0.15 41.36 0 Float64 6 │ EU_Sales 0.234517 0.0 0.06 28.96 0 Float64 7 │ JP_Sales 0.0638671 0.0 0.0 6.5 0 Float64 8 │ Other_Sales 0.0820003 0.0 0.02 10.57 0 Float64 9 │ Global_Sales 0.771487 0.01 0.29 82.53 0 Float64 10 │ Critic_Score 70.2585 13.0 72.0 98.0 0 Float64 11 │ Critic_Count 28.8425 3.0 24.0 113.0 0 Float64 12 │ User_Score 7.18438 0.5 7.5 9.6 0 Float64 13 │ User_Count 174.392 4.0 27.0 10665.0 0 Float64 14 │ Developer 10tacle Studios, Fusionsphere Sy… zSlide 0 String 15 │ Rating AO T 0 String7 16 │ Story Focus x x 6127 Union{Missing, String1} 17 │ Gameplay Focus x x 308 Union{Missing, String1} 18 │ Series x x 6103 Union{Missing, String1}
using Pkg
Pkg.add(["Statistics","StatsBase","RDatasets","Plots","StatsPlots","KernelDensity","Distributions","LinearAlgebra","HypothesisTests","PyCall","MLBase"])
using Statistics
using StatsBase
using RDatasets
using Plots
using StatsPlots
using KernelDensity
using Distributions
using LinearAlgebra
using HypothesisTests
using PyCall
using MLBase
Resolving package versions... Installed JpegTurbo_jll ──────────────── v3.0.1+0 Installed Calculus ───────────────────── v0.5.1 Installed libfdk_aac_jll ─────────────── v2.0.2+0 Installed GR_jll ─────────────────────── v0.72.10+0 Installed Libmount_jll ───────────────── v2.35.0+0 Installed x265_jll ───────────────────── v3.5.0+0 Installed OffsetArrays ───────────────── v1.13.0 Installed HypergeometricFunctions ────── v0.3.23 Installed LERC_jll ───────────────────── v3.0.0+1 Installed Opus_jll ───────────────────── v1.3.2+0 Installed Xorg_xkbcomp_jll ───────────── v1.4.6+0 Installed FFTW ───────────────────────── v1.8.0 Installed StatsFuns ──────────────────── v1.3.0 Installed LoggingExtras ──────────────── v1.0.3 Installed Accessors ──────────────────── v0.1.35 Installed RelocatableFolders ─────────── v1.0.1 Installed Unitful ────────────────────── v1.19.0 Installed Measures ───────────────────── v0.3.2 Installed PDMats ─────────────────────── v0.11.31 Installed ConcurrentUtilities ────────── v2.3.0 Installed Contour ────────────────────── v0.6.2 Installed StaticArrays ───────────────── v1.9.1 Installed NearestNeighbors ───────────── v0.4.16 Installed Grisu ──────────────────────── v1.0.2 Installed Formatting ─────────────────── v0.4.2 Installed Xorg_xcb_util_wm_jll ───────── v0.4.1+1 Installed Xorg_xcb_util_image_jll ────── v0.4.0+1 Installed RecipesPipeline ────────────── v0.6.12 Installed PlotUtils ──────────────────── v1.4.0 Installed Roots ──────────────────────── v2.1.0 Installed Xorg_libpthread_stubs_jll ──── v0.1.1+0 Installed MLBase ─────────────────────── v0.9.2 Installed OpenSSL ────────────────────── v1.4.1 Installed DelimitedFiles ─────────────── v1.9.1 Installed FileIO ─────────────────────── v1.16.2 Installed HTTP ───────────────────────── v1.10.1 Installed Xorg_libSM_jll ─────────────── v1.2.3+0 Installed ColorSchemes ───────────────── v3.24.0 Installed Cairo_jll ──────────────────── v1.16.1+1 Installed Xorg_xcb_util_jll ──────────── v0.4.0+1 Installed Fontconfig_jll ─────────────── v2.13.93+0 Installed Libgpg_error_jll ───────────── v1.42.0+0 Installed IntelOpenMP_jll ────────────── v2024.0.2+0 Installed Xorg_libxkbfile_jll ────────── v1.1.2+0 Installed Xorg_libXinerama_jll ───────── v1.1.4+4 Installed Xorg_libXau_jll ────────────── v1.0.11+0 Installed EpollShim_jll ──────────────── v0.0.20230411+0 Installed FFMPEG ─────────────────────── v0.4.1 Installed Distances ──────────────────── v0.10.11 Installed IrrationalConstants ────────── v0.2.2 Installed Showoff ────────────────────── v1.0.3 Installed Xorg_xcb_util_keysyms_jll ──── v0.4.0+1 Installed xkbcommon_jll ──────────────── v1.4.1+1 Installed Bzip2_jll ──────────────────── v1.0.8+1 Installed SimpleBufferStream ─────────── v1.1.0 Installed Pipe ───────────────────────── v1.3.0 Installed GR ─────────────────────────── v0.72.10 Installed XZ_jll ─────────────────────── v5.4.5+0 Installed SpecialFunctions ───────────── v2.3.1 Installed Clustering ─────────────────── v0.15.7 Installed HarfBuzz_jll ───────────────── v2.8.1+1 Installed PlotThemes ─────────────────── v3.1.0 Installed StaticArraysCore ───────────── v1.4.2 Installed NaNMath ────────────────────── v1.0.2 Installed LZO_jll ────────────────────── v2.10.1+0 Installed fzf_jll ────────────────────── v0.43.0+0 Installed FriBidi_jll ────────────────── v1.0.10+0 Installed UnicodeFun ─────────────────── v0.4.1 Installed HypothesisTests ────────────── v0.11.0 Installed Rmath_jll ──────────────────── v0.4.0+0 Installed GLFW_jll ───────────────────── v3.3.9+0 Installed Ratios ─────────────────────── v0.4.5 Installed x264_jll ───────────────────── v2021.5.5+0 Installed FreeType2_jll ──────────────── v2.13.1+0 Installed JLFzf ──────────────────────── v0.1.7 Installed Colors ─────────────────────── v0.12.10 Installed ExprTools ──────────────────── v0.1.10 Installed StatsAPI ───────────────────── v1.7.0 Installed Xorg_libxcb_jll ────────────── v1.15.0+0 Installed libpng_jll ─────────────────── v1.6.40+0 Installed ExceptionUnwrapping ────────── v0.1.10 Installed libaom_jll ─────────────────── v3.4.0+0 Installed mtdev_jll ──────────────────── v1.1.6+0 Installed StatsBase ──────────────────── v0.34.2 Installed Scratch ────────────────────── v1.2.1 Installed gperf_jll ──────────────────── v3.1.1+0 Installed ColorTypes ─────────────────── v0.11.4 Installed StatsPlots ─────────────────── v0.15.6 Installed eudev_jll ──────────────────── v3.2.9+0 Installed Xorg_libXext_jll ───────────── v1.3.4+4 Installed TensorCore ─────────────────── v0.1.1 Installed Zstd_jll ───────────────────── v1.5.5+0 Installed Xorg_xcb_util_cursor_jll ───── v0.1.4+0 Installed Expat_jll ──────────────────── v2.5.0+0 Installed Plots ──────────────────────── v1.39.0 Installed PyCall ─────────────────────── v1.96.4 Installed CategoricalArrays ──────────── v0.10.8 Installed Libtiff_jll ────────────────── v4.5.1+1 Installed MKL_jll ────────────────────── v2024.0.0+0 Installed ColorVectorSpace ───────────── v0.10.0 Installed AbstractFFTs ───────────────── v1.5.0 Installed ConstructionBase ───────────── v1.5.4 Installed Libffi_jll ─────────────────── v3.2.2+1 Installed Xorg_libXrender_jll ────────── v0.9.10+4 Installed TimeZones ──────────────────── v1.13.0 Installed libevdev_jll ───────────────── v1.11.0+0 Installed Ogg_jll ────────────────────── v1.3.5+1 Installed libinput_jll ───────────────── v1.18.0+0 Installed KernelDensity ──────────────── v0.6.8 Installed Combinatorics ──────────────── v1.0.2 Installed Xorg_libXi_jll ─────────────── v1.7.10+4 Installed Vulkan_Loader_jll ──────────── v1.3.243+0 Installed ChainRulesCore ─────────────── v1.19.1 Installed XSLT_jll ───────────────────── v1.1.34+0 Installed LogExpFunctions ────────────── v0.3.26 Installed FFTW_jll ───────────────────── v3.3.10+0 Installed MacroTools ─────────────────── v0.5.13 Installed OpenSpecFun_jll ────────────── v0.5.5+0 Installed CompositionsBase ───────────── v0.1.2 Installed Xorg_libXcursor_jll ────────── v1.2.0+4 Installed InverseFunctions ───────────── v0.1.12 Installed Libuuid_jll ────────────────── v2.36.0+0 Installed CommonSolve ────────────────── v0.2.4 Installed Widgets ────────────────────── v0.6.6 Installed Wayland_protocols_jll ──────── v1.31.0+0 Installed MultivariateStats ──────────── v0.10.2 Installed Xorg_xcb_util_renderutil_jll ─ v0.3.9+1 Installed DocStringExtensions ────────── v0.9.3 Installed Xorg_libICE_jll ────────────── v1.0.10+1 Installed RData ──────────────────────── v0.8.3 Installed libass_jll ─────────────────── v0.15.1+0 Installed Adapt ──────────────────────── v3.7.2 Installed Pixman_jll ─────────────────── v0.42.2+0 Installed Graphite2_jll ──────────────── v1.3.14+0 Installed Rmath ──────────────────────── v0.7.1 Installed XML2_jll ───────────────────── v2.12.2+0 Installed Interpolations ─────────────── v0.14.7 Installed DualNumbers ────────────────── v0.6.8 Installed Gettext_jll ────────────────── v0.21.0+0 Installed Arpack_jll ─────────────────── v3.5.1+1 Installed Wayland_jll ────────────────── v1.21.0+1 Installed Mocking ────────────────────── v0.7.7 Installed IterTools ──────────────────── v1.10.0 Installed Latexify ───────────────────── v0.16.1 Installed Xorg_xtrans_jll ────────────── v1.5.0+0 Installed OpenSSL_jll ────────────────── v3.0.12+0 Installed FFMPEG_jll ─────────────────── v4.4.4+1 Installed Libgcrypt_jll ──────────────── v1.8.7+0 Installed BitFlags ───────────────────── v0.1.8 Installed Xorg_xkeyboard_config_jll ──── v2.39.0+0 Installed LLVMOpenMP_jll ─────────────── v15.0.7+0 Installed FixedPointNumbers ──────────── v0.8.4 Installed Xorg_libXrandr_jll ─────────── v1.5.2+4 Installed RecipesBase ────────────────── v1.3.4 Installed Xorg_libXfixes_jll ─────────── v5.0.3+4 Installed TableOperations ────────────── v1.2.0 Installed TZJData ────────────────────── v1.0.0+2023c Installed LAME_jll ───────────────────── v3.100.1+0 Installed Libiconv_jll ───────────────── v1.17.0+0 Installed Qt6Base_jll ────────────────── v6.5.3+1 Installed Glib_jll ───────────────────── v2.76.5+0 Installed libvorbis_jll ──────────────── v1.3.7+1 Installed URIs ───────────────────────── v1.5.1 Installed Arpack ─────────────────────── v0.5.4 Installed Libglvnd_jll ───────────────── v1.6.0+0 Installed FillArrays ─────────────────── v1.9.3 Installed QuadGK ─────────────────────── v2.9.4 Installed AxisAlgorithms ─────────────── v1.0.1 Installed Xorg_libX11_jll ────────────── v1.8.6+0 Installed Requires ───────────────────── v1.3.0 Installed Xorg_libXdmcp_jll ──────────── v1.1.4+0 Installed Observables ────────────────── v0.5.5 Installed Unzip ──────────────────────── v0.2.0 Installed WoodburyMatrices ───────────── v0.5.6 Installed UnitfulLatexify ────────────── v1.6.3 Installed Distributions ──────────────── v0.25.107 Installed RDatasets ──────────────────── v0.7.7 Updating `C:\Users\atama\.julia\environments\v1.9\Project.toml` [31c24e10] + Distributions v0.25.107 [09f84164] + HypothesisTests v0.11.0 [5ab0869b] + KernelDensity v0.6.8 [f0e99cf1] + MLBase v0.9.2 [91a5bcdd] + Plots v1.39.0 [438e738f] + PyCall v1.96.4 [ce6b1742] + RDatasets v0.7.7 [2913bbd2] + StatsBase v0.34.2 [f3b207a7] + StatsPlots v0.15.6 [37e2e46d] + LinearAlgebra [10745b16] + Statistics v1.9.0 Updating `C:\Users\atama\.julia\environments\v1.9\Manifest.toml` [621f4979] + AbstractFFTs v1.5.0 [7d9f7c33] + Accessors v0.1.35 ⌅ [79e6a3ab] + Adapt v3.7.2 [7d9fca2a] + Arpack v0.5.4 ⌃ [13072b0f] + AxisAlgorithms v1.0.1 [d1d4a3ce] + BitFlags v0.1.8 [49dc2e85] + Calculus v0.5.1 [324d7699] + CategoricalArrays v0.10.8 [d360d2e6] + ChainRulesCore v1.19.1 [aaaa29a8] + Clustering v0.15.7 [35d6a980] + ColorSchemes v3.24.0 [3da002f7] + ColorTypes v0.11.4 [c3611d14] + ColorVectorSpace v0.10.0 [5ae59095] + Colors v0.12.10 [861a8166] + Combinatorics v1.0.2 [38540f10] + CommonSolve v0.2.4 [a33af91c] + CompositionsBase v0.1.2 [f0e56b4a] + ConcurrentUtilities v2.3.0 [187b0558] + ConstructionBase v1.5.4 [d38c429a] + Contour v0.6.2 [8bb1440f] + DelimitedFiles v1.9.1 [b4f34e82] + Distances v0.10.11 [31c24e10] + Distributions v0.25.107 [ffbed154] + DocStringExtensions v0.9.3 [fa6b7ba4] + DualNumbers v0.6.8 [460bff9d] + ExceptionUnwrapping v0.1.10 [e2ba6199] + ExprTools v0.1.10 [c87230d0] + FFMPEG v0.4.1 [7a1cc6ca] + FFTW v1.8.0 [5789e2e9] + FileIO v1.16.2 [1a297f60] + FillArrays v1.9.3 [53c48c17] + FixedPointNumbers v0.8.4 [59287772] + Formatting v0.4.2 ⌅ [28b8d3ca] + GR v0.72.10 [42e2da0e] + Grisu v1.0.2 [cd3eb016] + HTTP v1.10.1 [34004b35] + HypergeometricFunctions v0.3.23 [09f84164] + HypothesisTests v0.11.0 ⌅ [a98d9a8b] + Interpolations v0.14.7 [3587e190] + InverseFunctions v0.1.12 [92d709cd] + IrrationalConstants v0.2.2 [c8e1da08] + IterTools v1.10.0 [1019f520] + JLFzf v0.1.7 [5ab0869b] + KernelDensity v0.6.8 [23fbe1c1] + Latexify v0.16.1 [2ab3a3ac] + LogExpFunctions v0.3.26 [e6f89c97] + LoggingExtras v1.0.3 [f0e99cf1] + MLBase v0.9.2 [1914dd2f] + MacroTools v0.5.13 [442fdcdd] + Measures v0.3.2 [78c3b35d] + Mocking v0.7.7 [6f286f6a] + MultivariateStats v0.10.2 [77ba4419] + NaNMath v1.0.2 [b8a86587] + NearestNeighbors v0.4.16 [510215fc] + Observables v0.5.5 [6fe1bfb0] + OffsetArrays v1.13.0 [4d8831e6] + OpenSSL v1.4.1 [90014a1f] + PDMats v0.11.31 [b98c9c47] + Pipe v1.3.0 [ccf2f8ad] + PlotThemes v3.1.0 [995b91a9] + PlotUtils v1.4.0 [91a5bcdd] + Plots v1.39.0 [438e738f] + PyCall v1.96.4 [1fd47b50] + QuadGK v2.9.4 ⌅ [df47a6cb] + RData v0.8.3 [ce6b1742] + RDatasets v0.7.7 [c84ed2f1] + Ratios v0.4.5 [3cdcf5f2] + RecipesBase v1.3.4 [01d81517] + RecipesPipeline v0.6.12 [05181044] + RelocatableFolders v1.0.1 [ae029012] + Requires v1.3.0 [79098fc4] + Rmath v0.7.1 [f2b01f46] + Roots v2.1.0 [6c6a2e73] + Scratch v1.2.1 [992d4aef] + Showoff v1.0.3 [777ac1f9] + SimpleBufferStream v1.1.0 [276daf66] + SpecialFunctions v2.3.1 [90137ffa] + StaticArrays v1.9.1 [1e83bf80] + StaticArraysCore v1.4.2 [82ae8749] + StatsAPI v1.7.0 [2913bbd2] + StatsBase v0.34.2 [4c63d2b9] + StatsFuns v1.3.0 [f3b207a7] + StatsPlots v0.15.6 [dc5dba14] + TZJData v1.0.0+2023c [ab02a1b2] + TableOperations v1.2.0 [62fd8b95] + TensorCore v0.1.1 [f269a46b] + TimeZones v1.13.0 [5c2747f8] + URIs v1.5.1 [1cfade01] + UnicodeFun v0.4.1 [1986cc42] + Unitful v1.19.0 [45397f5d] + UnitfulLatexify v1.6.3 [41fe7b60] + Unzip v0.2.0 [cc8bc4a8] + Widgets v0.6.6 ⌅ [efce3f68] + WoodburyMatrices v0.5.6 ⌅ [68821587] + Arpack_jll v3.5.1+1 [6e34b625] + Bzip2_jll v1.0.8+1 [83423d85] + Cairo_jll v1.16.1+1 [2702e6a9] + EpollShim_jll v0.0.20230411+0 [2e619515] + Expat_jll v2.5.0+0 [b22a6f82] + FFMPEG_jll v4.4.4+1 [f5851436] + FFTW_jll v3.3.10+0 [a3f928ae] + Fontconfig_jll v2.13.93+0 [d7e528f0] + FreeType2_jll v2.13.1+0 [559328eb] + FriBidi_jll v1.0.10+0 [0656b61e] + GLFW_jll v3.3.9+0 ⌅ [d2c73de3] + GR_jll v0.72.10+0 [78b55507] + Gettext_jll v0.21.0+0 [7746bdde] + Glib_jll v2.76.5+0 [3b182d85] + Graphite2_jll v1.3.14+0 [2e76f6c2] + HarfBuzz_jll v2.8.1+1 [1d5cc7b8] + IntelOpenMP_jll v2024.0.2+0 [aacddb02] + JpegTurbo_jll v3.0.1+0 [c1c5ebd0] + LAME_jll v3.100.1+0 [88015f11] + LERC_jll v3.0.0+1 [1d63c593] + LLVMOpenMP_jll v15.0.7+0 [dd4b983a] + LZO_jll v2.10.1+0 ⌅ [e9f186c6] + Libffi_jll v3.2.2+1 [d4300ac3] + Libgcrypt_jll v1.8.7+0 [7e76a0d4] + Libglvnd_jll v1.6.0+0 [7add5ba3] + Libgpg_error_jll v1.42.0+0 [94ce4f54] + Libiconv_jll v1.17.0+0 [4b2f31a3] + Libmount_jll v2.35.0+0 ⌅ [89763e89] + Libtiff_jll v4.5.1+1 [38a345b3] + Libuuid_jll v2.36.0+0 [856f044c] + MKL_jll v2024.0.0+0 [e7412a2a] + Ogg_jll v1.3.5+1 [458c3c95] + OpenSSL_jll v3.0.12+0 [efe28fd5] + OpenSpecFun_jll v0.5.5+0 [91d4177d] + Opus_jll v1.3.2+0 [30392449] + Pixman_jll v0.42.2+0 [c0090381] + Qt6Base_jll v6.5.3+1 [f50d1b31] + Rmath_jll v0.4.0+0 [a44049a8] + Vulkan_Loader_jll v1.3.243+0 [a2964d1f] + Wayland_jll v1.21.0+1 [2381bf8a] + Wayland_protocols_jll v1.31.0+0 [02c8fc9c] + XML2_jll v2.12.2+0 [aed1982a] + XSLT_jll v1.1.34+0 [ffd25f8a] + XZ_jll v5.4.5+0 [f67eecfb] + Xorg_libICE_jll v1.0.10+1 [c834827a] + Xorg_libSM_jll v1.2.3+0 [4f6342f7] + Xorg_libX11_jll v1.8.6+0 [0c0b7dd1] + Xorg_libXau_jll v1.0.11+0 [935fb764] + Xorg_libXcursor_jll v1.2.0+4 [a3789734] + Xorg_libXdmcp_jll v1.1.4+0 [1082639a] + Xorg_libXext_jll v1.3.4+4 [d091e8ba] + Xorg_libXfixes_jll v5.0.3+4 [a51aa0fd] + Xorg_libXi_jll v1.7.10+4 [d1454406] + Xorg_libXinerama_jll v1.1.4+4 [ec84b674] + Xorg_libXrandr_jll v1.5.2+4 [ea2f1a96] + Xorg_libXrender_jll v0.9.10+4 [14d82f49] + Xorg_libpthread_stubs_jll v0.1.1+0 [c7cfdc94] + Xorg_libxcb_jll v1.15.0+0 [cc61e674] + Xorg_libxkbfile_jll v1.1.2+0 [e920d4aa] + Xorg_xcb_util_cursor_jll v0.1.4+0 [12413925] + Xorg_xcb_util_image_jll v0.4.0+1 [2def613f] + Xorg_xcb_util_jll v0.4.0+1 [975044d2] + Xorg_xcb_util_keysyms_jll v0.4.0+1 [0d47668e] + Xorg_xcb_util_renderutil_jll v0.3.9+1 [c22f9ab0] + Xorg_xcb_util_wm_jll v0.4.1+1 [35661453] + Xorg_xkbcomp_jll v1.4.6+0 [33bec58e] + Xorg_xkeyboard_config_jll v2.39.0+0 [c5fb5394] + Xorg_xtrans_jll v1.5.0+0 [3161d3a3] + Zstd_jll v1.5.5+0 [35ca27e7] + eudev_jll v3.2.9+0 [214eeab7] + fzf_jll v0.43.0+0 [1a1c6b14] + gperf_jll v3.1.1+0 [a4ae2306] + libaom_jll v3.4.0+0 [0ac62f75] + libass_jll v0.15.1+0 [2db6ffa8] + libevdev_jll v1.11.0+0 [f638f0a6] + libfdk_aac_jll v2.0.2+0 [36db933b] + libinput_jll v1.18.0+0 [b53b4c65] + libpng_jll v1.6.40+0 [f27f6e37] + libvorbis_jll v1.3.7+1 [009596ad] + mtdev_jll v1.1.6+0 [1270edf5] + x264_jll v2021.5.5+0 [dfaa095f] + x265_jll v3.5.0+0 [d8fb68d0] + xkbcommon_jll v1.4.1+1 [8ba89e20] + Distributed [4af54fe1] + LazyArtifacts [1a1011a3] + SharedArrays [4607b0f0] + SuiteSparse [05823500] + OpenLibm_jll v0.8.1+0 [efcefdf7] + PCRE2_jll v10.42.0+0 Info Packages marked with ⌃ and ⌅ have new versions available, but those with ⌅ are restricted by compatibility constraints from upgrading. To see why use `status --outdated -m` Building PyCall → `C:\Users\atama\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\9816a3826b0ebf49ab4926e2b18842ad8b5c8f04\build.log` Precompiling project... ✓ TensorCore ✓ ExprTools ✓ AbstractFFTs ✓ Calculus ✓ Combinatorics ✓ StatsAPI ✓ Contour ✓ ConcurrentUtilities ✓ Pipe ✓ Measures ✓ FillArrays ✓ CommonSolve ✓ Xorg_libICE_jll ✓ OffsetArrays ✓ InverseFunctions ✓ WoodburyMatrices ✓ TZJData ✓ IterTools ✓ Grisu ✓ Observables ✓ Unzip ✓ DocStringExtensions ✓ Requires ✓ SimpleBufferStream ✓ CompositionsBase ✓ URIs ✓ IrrationalConstants ✓ Formatting ✓ ExceptionUnwrapping ✓ NaNMath ✓ DelimitedFiles ✓ MacroTools ✓ ChainRulesCore ✓ BitFlags ✓ Scratch ✓ ConstructionBase ✓ UnicodeFun ✓ LoggingExtras ✓ StaticArraysCore ✓ PDMats ✓ OpenSSL_jll ✓ Graphite2_jll ✓ RecipesBase ✓ Libmount_jll ✓ EpollShim_jll ✓ LLVMOpenMP_jll ✓ Bzip2_jll ✓ Rmath_jll ✓ FixedPointNumbers ✓ Xorg_libXau_jll ✓ libpng_jll ✓ libfdk_aac_jll ✓ IntelOpenMP_jll ✓ LAME_jll ✓ LERC_jll ✓ fzf_jll ✓ JpegTurbo_jll ✓ XZ_jll ✓ Ogg_jll ✓ mtdev_jll ✓ gperf_jll ✓ Xorg_libXdmcp_jll ✓ x265_jll ✓ x264_jll ✓ libaom_jll ✓ Zstd_jll ✓ Arpack_jll ✓ Expat_jll ✓ LZO_jll ✓ Opus_jll ✓ Xorg_xtrans_jll ✓ libevdev_jll ✓ Libiconv_jll ✓ Libffi_jll ✓ Libgpg_error_jll ✓ Wayland_protocols_jll ✓ FFTW_jll ✓ OpenSpecFun_jll ✓ Xorg_libpthread_stubs_jll ✓ FriBidi_jll ✓ Libuuid_jll ✓ Mocking ✓ TableOperations ✓ QuadGK ✓ Distances ✓ AbstractFFTs → AbstractFFTsTestExt ✓ FillArrays → FillArraysSparseArraysExt ✓ Showoff ✓ AxisAlgorithms ✓ FillArrays → FillArraysStatisticsExt ✓ Xorg_libSM_jll ✓ Ratios ✓ Adapt ✓ CompositionsBase → CompositionsBaseInverseFunctionsExt ✓ LogExpFunctions ✓ CategoricalArrays ✓ ChainRulesCore → ChainRulesCoreSparseArraysExt ✓ AbstractFFTs → AbstractFFTsChainRulesCoreExt ✓ RelocatableFolders ✓ FileIO ✓ Latexify ✓ FillArrays → FillArraysPDMatsExt ✓ Pixman_jll ✓ OpenSSL ✓ FreeType2_jll ✓ Rmath ✓ ColorTypes ✓ JLFzf ✓ StaticArrays ✓ libvorbis_jll ✓ eudev_jll ✓ Libtiff_jll ✓ Arpack ✓ XML2_jll ✓ Libgcrypt_jll ✓ Distances → DistancesSparseArraysExt ✓ Distances → DistancesChainRulesCoreExt ✓ Ratios → RatiosFixedPointNumbersExt ✓ PyCall ✓ LogExpFunctions → LogExpFunctionsInverseFunctionsExt ✓ OffsetArrays → OffsetArraysAdaptExt ✓ CategoricalArrays → CategoricalArraysJSONExt ✓ LogExpFunctions → LogExpFunctionsChainRulesCoreExt ✓ CategoricalArrays → CategoricalArraysSentinelArraysExt ✓ CategoricalArrays → CategoricalArraysRecipesBaseExt ✓ Unitful ✓ Fontconfig_jll ✓ TimeZones ✓ Latexify → DataFramesExt ✓ HTTP ✓ StaticArrays → StaticArraysChainRulesCoreExt ✓ StaticArrays → StaticArraysStatisticsExt ✓ Colors ✓ ConstructionBase → ConstructionBaseStaticArraysExt ✓ Adapt → AdaptStaticArraysExt ✓ ColorVectorSpace ✓ libinput_jll ✓ Wayland_jll ✓ Gettext_jll ✓ XSLT_jll ✓ Unitful → ConstructionBaseUnitfulExt ✓ StatsBase ✓ NearestNeighbors ✓ Unitful → InverseFunctionsUnitfulExt ✓ SpecialFunctions ✓ TimeZones → TimeZonesRecipesBaseExt ✓ UnitfulLatexify ✓ Widgets ✓ Accessors ✓ Glib_jll ✓ Xorg_libxcb_jll ✓ RData ✓ Interpolations ✓ MLBase ✓ MultivariateStats ✓ DualNumbers ✓ SpecialFunctions → SpecialFunctionsChainRulesCoreExt ✓ Clustering ✓ ColorVectorSpace → SpecialFunctionsExt ✓ Xorg_xcb_util_jll ✓ Accessors → AccessorsStaticArraysExt ✓ Xorg_libX11_jll ✓ MKL_jll ✓ Xorg_xcb_util_image_jll ✓ HypergeometricFunctions ✓ Xorg_xcb_util_keysyms_jll ✓ Roots ✓ Xorg_xcb_util_renderutil_jll ✓ Xorg_xcb_util_wm_jll ✓ Xorg_libXrender_jll ✓ Xorg_libXext_jll ✓ Xorg_libXfixes_jll ✓ Xorg_libxkbfile_jll ✓ RDatasets ✓ Xorg_xcb_util_cursor_jll ✓ Libglvnd_jll ✓ Xorg_libXinerama_jll ✓ Xorg_libXrandr_jll ✓ StatsFuns ✓ ColorSchemes ✓ Xorg_libXcursor_jll ✓ Xorg_libXi_jll ✓ Cairo_jll ✓ Xorg_xkbcomp_jll ✓ StatsFuns → StatsFunsInverseFunctionsExt ✓ GLFW_jll ✓ StatsFuns → StatsFunsChainRulesCoreExt ✓ Xorg_xkeyboard_config_jll ✓ HarfBuzz_jll ✓ xkbcommon_jll ✓ libass_jll ✓ Vulkan_Loader_jll ✓ FFMPEG_jll ✓ Qt6Base_jll ✓ Distributions ✓ FFMPEG ✓ FFTW ✓ GR_jll ✓ Distributions → DistributionsTestExt ✓ PlotUtils ✓ Distributions → DistributionsChainRulesCoreExt ✓ GR ✓ HypothesisTests ✓ PlotThemes ✓ RecipesPipeline ✓ KernelDensity ✓ Plots ✓ Plots → FileIOExt ✓ Plots → IJuliaExt ✓ Plots → UnitfulExt ✓ StatsPlots 211 dependencies successfully precompiled in 265 seconds. 50 already precompiled. 2 dependencies had warnings during precompilation: ┌ MKL_jll [856f044c-d86e-5d09-b602-aeab76dc8ba7] │ Downloading artifact: MKL └ ┌ TimeZonesRecipesBaseExt [7f969005-de8d-58b6-a711-4f863f324b87] │ [ Info: Downloading Windows to POSIX timezone ID XML version: release-43-1 │ [ Info: Compiling Windows time zone name translation └
Elestirmen_puani = games[!,:Critic_Score]
histogram(Elestirmen_puani,label="Eleştirmen Puanı")
Eleştirmen puanlarına ilişkin histogram grafiği yapılmış olup grafiğin normal dağılmadığı, sola çarpık bir dağılım olduğu görülmektedir.
using Plots
using DataFrames
numeric_variable = :Global_Sales
categorical_variable = :Genre
boxplot(games[:, categorical_variable], games[:, numeric_variable], xlabel=categorical_variable, ylabel=numeric_variable, title="Türe Göre Dünya Çapında Satışlar")
Bu grafiğe bakıldığında en çok göze çarpan oyunun, dünya çapında 82,5 milyon satılmış olan Wii Sports olduğu bilinmektedir.
using Pkg
Pkg.add("DecisionTree")
Pkg.add("MLBase")
Pkg.add("NearestNeighbors")
Pkg.add("DataStructures")
Resolving package versions... Installed ScikitLearnBase ─ v0.5.0 Installed AbstractTrees ─── v0.4.4 Installed DecisionTree ──── v0.12.4 Updating `C:\Users\atama\.julia\environments\v1.9\Project.toml` [7806a523] + DecisionTree v0.12.4 Updating `C:\Users\atama\.julia\environments\v1.9\Manifest.toml` [1520ce14] + AbstractTrees v0.4.4 [7806a523] + DecisionTree v0.12.4 [6e75b9c4] + ScikitLearnBase v0.5.0 Precompiling project... ✓ ScikitLearnBase ✓ AbstractTrees ✓ DecisionTree 3 dependencies successfully precompiled in 26 seconds. 261 already precompiled. Resolving package versions... No Changes to `C:\Users\atama\.julia\environments\v1.9\Project.toml` No Changes to `C:\Users\atama\.julia\environments\v1.9\Manifest.toml` Resolving package versions... Updating `C:\Users\atama\.julia\environments\v1.9\Project.toml` [b8a86587] + NearestNeighbors v0.4.16 No Changes to `C:\Users\atama\.julia\environments\v1.9\Manifest.toml` Resolving package versions... Updating `C:\Users\atama\.julia\environments\v1.9\Project.toml` [864edb3b] + DataStructures v0.18.16 No Changes to `C:\Users\atama\.julia\environments\v1.9\Manifest.toml`
using Pkg
Pkg.add("Lathe")
Resolving package versions... No Changes to `C:\Users\atama\.julia\environments\v1.9\Project.toml` No Changes to `C:\Users\atama\.julia\environments\v1.9\Manifest.toml`
using Lathe.preprocess: TrainTestSplit
train,test=TrainTestSplit(games,.60)
(4218×18 DataFrame Row │ Name Year_of_Release Genre Publ ⋯ │ String Float64 String15 Stri ⋯ ──────┼───────────────────────────────────────────────────────────────────────── 1 │ .hack//Infection Part 1 2002.0 Role-Playing Atar ⋯ 2 │ .hack//Mutation Part 2 2002.0 Role-Playing Atar 3 │ .hack//Outbreak Part 3 2002.0 Role-Playing Atar 4 │ [Prototype] 2009.0 Action Acti 5 │ [Prototype] 2009.0 Action Acti ⋯ 6 │ [Prototype 2] 2012.0 Action Acti 7 │ 007: Quantum of Solace 2008.0 Action Acti 8 │ 007: Quantum of Solace 2008.0 Action Acti 9 │ 007: Quantum of Solace 2008.0 Action Acti ⋯ 10 │ 1701 A.D. 2006.0 Simulation Deep 11 │ 187: Ride or Die 2005.0 Racing Ubis ⋮ │ ⋮ ⋮ ⋮ ⋱ 4209 │ Zero Escape: Zero Time Dilemma 2016.0 Adventure Aksy 4210 │ Zoids Assault 2007.0 Strategy Taka ⋯ 4211 │ Zombie Army Trilogy 2015.0 Shooter Rebe 4212 │ ZombiU 2012.0 Action Ubis 4213 │ Zone of the Enders: The 2nd Runn… 2003.0 Simulation Kona 4214 │ Zone of the Enders: The Fist of … 2001.0 Role-Playing Kona ⋯ 4215 │ Zone of the Enders HD Collection 2012.0 Simulation Kona 4216 │ Zoo Keeper 2004.0 Puzzle Igni 4217 │ Zoo Tycoon 2 DS 2008.0 Strategy THQ 4218 │ Zoo Tycoon DS 2005.0 Strategy THQ ⋯ 15 columns and 4197 rows omitted, 2676×18 DataFrame Row │ Name Year_of_Release Genre Publ ⋯ │ String Float64 String15 Stri ⋯ ──────┼───────────────────────────────────────────────────────────────────────── 1 │ [Prototype 2] 2012.0 Action Acti ⋯ 2 │ [Prototype 2] 2012.0 Action Acti 3 │ 007: Quantum of Solace 2008.0 Action Acti 4 │ 007: The World is not Enough 2000.0 Action Elec 5 │ 007 Racing 2000.0 Racing Elec ⋯ 6 │ 100 Classic Books 2008.0 Misc Nint 7 │ 15 Days 2009.0 Adventure DTP 8 │ 2002 FIFA World Cup 2002.0 Sports Elec 9 │ 2002 FIFA World Cup 2002.0 Sports Elec ⋯ 10 │ 2010 FIFA World Cup South Africa 2010.0 Sports Elec 11 │ 3D Dot Game Heroes 2009.0 Role-Playing Sout ⋮ │ ⋮ ⋮ ⋮ ⋱ 2667 │ Zombie Army Trilogy 2015.0 Shooter Rebe 2668 │ Zone of the Enders 2001.0 Shooter Kona ⋯ 2669 │ Zone of the Enders HD Collection 2012.0 Simulation Kona 2670 │ ZooCube 2002.0 Puzzle Accl 2671 │ Zoo Tycoon 2 2004.0 Strategy Micr 2672 │ Zubo 2008.0 Misc Elec ⋯ 2673 │ Zumba Fitness 2010.0 Sports 505 2674 │ Zumba Fitness: World Party 2013.0 Misc Maje 2675 │ Zumba Fitness Core 2012.0 Misc 505 2676 │ Zumba Fitness Rush 2012.0 Sports 505 ⋯ 15 columns and 2655 rows omitted)
using Pkg
Pkg.add("GLM")
Pkg.add("StatsPlots")
Pkg.add("MLBase")
Pkg.add("Statistics")
Resolving package versions... Installed ShiftedArrays ─ v2.0.0 Installed GLM ─────────── v1.9.0 Installed StatsModels ─── v0.7.3 Updating `C:\Users\atama\.julia\environments\v1.9\Project.toml` [38e38edf] + GLM v1.9.0 Updating `C:\Users\atama\.julia\environments\v1.9\Manifest.toml` [38e38edf] + GLM v1.9.0 [1277b4bf] + ShiftedArrays v2.0.0 [3eaba693] + StatsModels v0.7.3 Precompiling project... ✓ ShiftedArrays ✓ StatsModels ✓ GLM 3 dependencies successfully precompiled in 7 seconds. 249 already precompiled. 2 dependencies had warnings during precompilation: ┌ StatsModels [3eaba693-59b7-5ba5-a881-562e759f1c8d] │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:fourπ}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:sqrt2}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:sqrthalfπ}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:inv4π}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:sqrt3}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:log4π}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:halfπ}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:quartπ}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:twoinvπ}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:sqrt2π}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:twoπ}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:invπ}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:sqrt4π}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:log2π}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:inv2π}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:fourinvπ}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:invsqrt2}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:logπ}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:sqrtπ}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:invsqrt2π}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:logtwo}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:loghalf}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:fourπ}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:sqrt2}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:sqrthalfπ}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:inv4π}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:sqrt3}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:log4π}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:halfπ}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:quartπ}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:twoinvπ}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:sqrt2π}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:twoπ}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:invπ}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:sqrt4π}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:log2π}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:inv2π}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:fourinvπ}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:invsqrt2}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:logπ}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:sqrtπ}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:invsqrt2π}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:logtwo}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:loghalf}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:fourπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:inv4π}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:sqrt3}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:log4π}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:halfπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:quartπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:twoinvπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:sqrt2π}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:log2π}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:twoπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:invπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:sqrt4π}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:inv2π}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:invsqrt2}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:fourinvπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:logπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:sqrtπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:invsqrt2π}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:sqrt2}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:sqrthalfπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:loghalf}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:logtwo}) in module IrrationalConstants at irrationals.jl:208 overwritten in module StatsFuns at irrationals.jl:215. │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:fourπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:inv4π}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:sqrt3}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:log4π}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:halfπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:quartπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:twoinvπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:sqrt2π}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:log2π}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:twoπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:invπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:sqrt4π}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:inv2π}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:invsqrt2}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:fourinvπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:logπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:sqrtπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:invsqrt2π}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:sqrt2}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:sqrthalfπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:loghalf}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:logtwo}) in module IrrationalConstants at irrationals.jl:208 overwritten in module StatsFuns at irrationals.jl:215. │ ** incremental compilation may be fatally broken for this module ** └ ┌ GLM [38e38edf-8417-5370-95a0-9cbb8c7f171a] │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:fourπ}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:sqrt2}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:sqrthalfπ}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:inv4π}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:sqrt3}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:log4π}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:halfπ}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:quartπ}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:twoinvπ}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:sqrt2π}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:twoπ}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:invπ}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:sqrt4π}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:log2π}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:inv2π}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:fourinvπ}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:invsqrt2}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:logπ}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:sqrtπ}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:invsqrt2π}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:logtwo}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float32})(Base.Irrational{:loghalf}) in module IrrationalConstants at irrationals.jl:225 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:fourπ}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:sqrt2}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:sqrthalfπ}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:inv4π}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:sqrt3}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:log4π}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:halfπ}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:quartπ}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:twoinvπ}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:sqrt2π}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:twoπ}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:invπ}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:sqrt4π}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:log2π}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:inv2π}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:fourinvπ}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:invsqrt2}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:logπ}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:sqrtπ}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:invsqrt2π}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:logtwo}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Float64})(Base.Irrational{:loghalf}) in module IrrationalConstants at irrationals.jl:224 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:fourπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:inv4π}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:sqrt3}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:log4π}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:halfπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:quartπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:twoinvπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:sqrt2π}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:log2π}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:twoπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:invπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:sqrt4π}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:inv2π}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:invsqrt2}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:fourinvπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:logπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:sqrtπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:invsqrt2π}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:sqrt2}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:sqrthalfπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:loghalf}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition (::Type{Base.MPFR.BigFloat})(Base.Irrational{:logtwo}) in module IrrationalConstants at irrationals.jl:208 overwritten in module StatsFuns at irrationals.jl:215. │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:fourπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:inv4π}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:sqrt3}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:log4π}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:halfπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:quartπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:twoinvπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:sqrt2π}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:log2π}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:twoπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:invπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:sqrt4π}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:inv2π}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:invsqrt2}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:fourinvπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:logπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:sqrtπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:invsqrt2π}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:sqrt2}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:sqrthalfπ}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:loghalf}) in module IrrationalConstants at irrationals.jl:215 overwritten in module StatsFuns on the same line (check for duplicate calls to `include`). │ ** incremental compilation may be fatally broken for this module ** │ │ WARNING: Method definition kwcall(Any, Type{Base.MPFR.BigFloat}, Base.Irrational{:logtwo}) in module IrrationalConstants at irrationals.jl:208 overwritten in module StatsFuns at irrationals.jl:215. │ ** incremental compilation may be fatally broken for this module ** └ Resolving package versions... No Changes to `C:\Users\atama\.julia\environments\v1.9\Project.toml` No Changes to `C:\Users\atama\.julia\environments\v1.9\Manifest.toml` Resolving package versions... No Changes to `C:\Users\atama\.julia\environments\v1.9\Project.toml` No Changes to `C:\Users\atama\.julia\environments\v1.9\Manifest.toml` Resolving package versions... No Changes to `C:\Users\atama\.julia\environments\v1.9\Project.toml` No Changes to `C:\Users\atama\.julia\environments\v1.9\Manifest.toml`
scatter(games.Global_Sales, games.Critic_Score, xlabel="Satış Sayısı", ylabel="Eleştirmen Puanı",legend=false)
using Statistics
cor(games.Global_Sales, games.Critic_Score)
0.2370829722667116
density(games.Critic_Score, title="Yoğunluk Grafiği", ylabel="Satış Sayısı", xlabel="Eleştirmen Puanı",legend=false)
Bu grafiğe göre eleştirmenlerin puanları arttıkça, oyunların satış sayılarında da artış olduğu görülmektedir.
using Lathe.preprocess: TrainTestSplit
train,test=TrainTestSplit(games,.75)
(5164×18 DataFrame Row │ Name Year_of_Release Genre Publ ⋯ │ String Float64 String15 Stri ⋯ ──────┼───────────────────────────────────────────────────────────────────────── 1 │ .hack//Mutation Part 2 2002.0 Role-Playing Atar ⋯ 2 │ .hack//Outbreak Part 3 2002.0 Role-Playing Atar 3 │ [Prototype] 2009.0 Action Acti 4 │ [Prototype] 2009.0 Action Acti 5 │ [Prototype 2] 2012.0 Action Acti ⋯ 6 │ 007: Quantum of Solace 2008.0 Action Acti 7 │ 007: Quantum of Solace 2008.0 Action Acti 8 │ 007: Quantum of Solace 2008.0 Action Acti 9 │ 007 Racing 2000.0 Racing Elec ⋯ 10 │ 100 Classic Books 2008.0 Misc Nint 11 │ 15 Days 2009.0 Adventure DTP ⋮ │ ⋮ ⋮ ⋮ ⋱ 5155 │ Zone of the Enders: The 2nd Runn… 2003.0 Simulation Kona 5156 │ Zone of the Enders: The Fist of … 2001.0 Role-Playing Kona ⋯ 5157 │ Zone of the Enders HD Collection 2012.0 Simulation Kona 5158 │ ZooCube 2002.0 Puzzle Accl 5159 │ Zoo Keeper 2004.0 Puzzle Igni 5160 │ Zoo Tycoon 2 2004.0 Strategy Micr ⋯ 5161 │ Zoo Tycoon 2 DS 2008.0 Strategy THQ 5162 │ Zoo Tycoon DS 2005.0 Strategy THQ 5163 │ Zubo 2008.0 Misc Elec 5164 │ Zumba Fitness Rush 2012.0 Sports 505 ⋯ 15 columns and 5143 rows omitted, 1730×18 DataFrame Row │ Name Year_of_Release Genre Publ ⋯ │ String Float64 String15 Stri ⋯ ──────┼───────────────────────────────────────────────────────────────────────── 1 │ .hack//Infection Part 1 2002.0 Role-Playing Atar ⋯ 2 │ [Prototype 2] 2012.0 Action Acti 3 │ [Prototype 2] 2012.0 Action Acti 4 │ 007: Quantum of Solace 2008.0 Action Acti 5 │ 007: The World is not Enough 2000.0 Action Elec ⋯ 6 │ 1701 A.D. 2006.0 Simulation Deep 7 │ 187: Ride or Die 2005.0 Racing Ubis 8 │ 187: Ride or Die 2005.0 Racing Ubis 9 │ 18 Wheeler: American Pro Trucker 2001.0 Racing Accl ⋯ 10 │ 1 vs. 100 2008.0 Misc DSI 11 │ 2002 FIFA World Cup 2002.0 Sports Elec ⋮ │ ⋮ ⋮ ⋮ ⋱ 1721 │ Yoshi's Woolly World 2015.0 Platform Nint 1722 │ Yoshi Topsy-Turvy 2004.0 Platform Nint ⋯ 1723 │ You're in the Movies 2008.0 Misc Micr 1724 │ Zero Escape: Virtue's Last Reward 2012.0 Adventure Risi 1725 │ Zombie Army Trilogy 2015.0 Shooter Rebe 1726 │ ZombiU 2012.0 Action Ubis ⋯ 1727 │ Zone of the Enders HD Collection 2012.0 Simulation Kona 1728 │ Zumba Fitness 2010.0 Sports 505 1729 │ Zumba Fitness: World Party 2013.0 Misc Maje 1730 │ Zumba Fitness Core 2012.0 Misc 505 ⋯ 15 columns and 1709 rows omitted)
using GLM
fm=@formula(Global_Sales~Critic_Score)
linreg=lm(fm,train)
[ Info: Precompiling GLM [38e38edf-8417-5370-95a0-9cbb8c7f171a] ┌ Warning: Module Distributions with build ID fafbfcfd-db24-c4a5-0003-06c7a2f1552d is missing from the cache. │ This may mean Distributions [31c24e10-a181-5473-b8eb-7969acd0382f] does not support precompilation but is imported by a module that does. └ @ Base loading.jl:1793 [ Info: Skipping precompilation since __precompile__(false). Importing GLM [38e38edf-8417-5370-95a0-9cbb8c7f171a]. [ Info: Precompiling StatsModels [3eaba693-59b7-5ba5-a881-562e759f1c8d] ┌ Warning: Module StatsBase with build ID fafbfcfd-b090-8bb6-0003-06c044a37c91 is missing from the cache. │ This may mean StatsBase [2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91] does not support precompilation but is imported by a module that does. └ @ Base loading.jl:1793 [ Info: Skipping precompilation since __precompile__(false). Importing StatsModels [3eaba693-59b7-5ba5-a881-562e759f1c8d].
StatsModels.TableRegressionModel{LinearModel{GLM.LmResp{Vector{Float64}}, GLM.DensePredChol{Float64, CholeskyPivoted{Float64, Matrix{Float64}, Vector{Int64}}}}, Matrix{Float64}}
Global_Sales ~ 1 + Critic_Score
Coefficients:
──────────────────────────────────────────────────────────────────────────────
Coef. Std. Error t Pr(>|t|) Lower 95% Upper 95%
──────────────────────────────────────────────────────────────────────────────
(Intercept) -1.52391 0.136976 -11.13 <1e-27 -1.79244 -1.25538
Critic_Score 0.0326026 0.00190977 17.07 <1e-62 0.0288587 0.0363466
──────────────────────────────────────────────────────────────────────────────
Regresyon Analizi için kurulan denklem: "Global_Sales = B0 + Critic_ScoreB1 + E" şeklinde karşımıza çıkar.
H0: B1=0
H1: B1≠0
Yukarıdaki tabloya bakıldığında, Critic_Score değişkeninin Global_Sales değişkeni için anlamlı bir değişken olduğu söylenebilir. Dolayısıyla H0 hipotezi reddedilir.
r2(linreg)
0.05344065407879639
r2 değeri 0.0534 çıktığı için, modelin bağımsız değişkenlerle bağımlı değişken arasındaki varyansın sadece yaklaşık %5.34'ünü açıkladığını söyler.
test_pred=predict(linreg,test)
1730-element Vector{Union{Missing, Float64}}:
0.9212848953974435
1.0516954871916881
0.9538875433460043
0.5952584159118317
0.46484782411758685
1.0516954871916881
0.1714239925805363
0.13882134463197526
0.46484782411758685
-0.28501307869932013
1.0190928392431269
1.1821060789859328
0.856079599500321
⋮
0.5626557679632704
0.5626557679632704
1.0190928392431269
0.4322451761690258
0.2692319364262199
1.3451193187287387
0.4974504720661479
0.9864901912945656
0.856079599500321
-0.15460248690507528
0.856079599500321
0.9864901912945656
train_pred=predict(linreg,train)
5164-element Vector{Union{Missing, Float64}}:
0.9538875433460043
0.7582716556546376
1.0190928392431269
1.0516954871916881
0.8886822474488822
0.5952584159118317
0.23662928847765863
0.7582716556546376
0.13882134463197526
0.7582716556546376
0.5300531200147092
0.1714239925805363
0.856079599500321
⋮
0.4974504720661479
1.0190928392431269
1.1495034310373715
0.7908743036031984
0.9212848953974435
0.6604637118089538
0.8886822474488822
0.8234769515517597
0.4322451761690258
-0.08939719100795296
0.9212848953974435
0.856079599500321
perf_test=DataFrame(y_original=test[!,:Global_Sales],y_pred=test_pred)
| Row | y_original | y_pred |
|---|---|---|
| Float64 | Float64? | |
| 1 | 1.27 | 0.921285 |
| 2 | 0.74 | 1.0517 |
| 3 | 0.11 | 0.953888 |
| 4 | 1.48 | 0.595258 |
| 5 | 0.92 | 0.464848 |
| 6 | 0.3 | 1.0517 |
| 7 | 0.15 | 0.171424 |
| 8 | 0.06 | 0.138821 |
| 9 | 0.4 | 0.464848 |
| 10 | 0.08 | -0.285013 |
| 11 | 0.05 | 1.01909 |
| 12 | 0.85 | 1.18211 |
| 13 | 0.61 | 0.85608 |
| ⋮ | ⋮ | ⋮ |
| 1719 | 0.6 | 0.562656 |
| 1720 | 1.38 | 0.562656 |
| 1721 | 1.3 | 1.01909 |
| 1722 | 0.65 | 0.432245 |
| 1723 | 0.48 | 0.269232 |
| 1724 | 0.03 | 1.34512 |
| 1725 | 0.2 | 0.49745 |
| 1726 | 1.01 | 0.98649 |
| 1727 | 0.42 | 0.85608 |
| 1728 | 2.37 | -0.154602 |
| 1729 | 0.24 | 0.85608 |
| 1730 | 0.05 | 0.98649 |
perf_test.hata=perf_test[!,:y_original]-perf_test[!,:y_pred]
1730-element Vector{Float64}:
0.3487151046025565
-0.31169548719168816
-0.8438875433460044
0.8847415840881683
0.4551521758824132
-0.7516954871916881
-0.021423992580536316
-0.07882134463197527
-0.06484782411758683
0.36501307869932015
-0.9690928392431268
-0.3321060789859328
-0.246079599500321
⋮
0.03734423203672954
0.8173442320367295
0.28090716075687316
0.21775482383097422
0.21076806357378008
-1.3151193187287387
-0.2974504720661479
0.0235098087054344
-0.436079599500321
2.524602486905075
-0.616079599500321
-0.9364901912945656
perf_test.hata_kare=perf_test.hata.*perf_test.hata
1730-element Vector{Float64}:
0.12160222417797192
0.09715407673566384
0.7121461858145544
0.7827676706148413
0.2071635032104952
0.5650461054643493
0.00045898745809087513
0.006212804369592616
0.004205240292785475
0.1332345476215561
0.9391409310723049
0.11029444769941064
0.06055516929023838
⋮
0.001394591666413097
0.668051593643711
0.07890883296448778
0.04741716330165862
0.044423176622641
1.7295388224935417
0.08847678333237423
0.000552711105366119
0.19016541710036036
6.37361771688729
0.3795540729204759
0.877013878390932
perf_test
| Row | y_original | y_pred | hata | hata_kare |
|---|---|---|---|---|
| Float64 | Float64? | Float64 | Float64 | |
| 1 | 1.27 | 0.921285 | 0.348715 | 0.121602 |
| 2 | 0.74 | 1.0517 | -0.311695 | 0.0971541 |
| 3 | 0.11 | 0.953888 | -0.843888 | 0.712146 |
| 4 | 1.48 | 0.595258 | 0.884742 | 0.782768 |
| 5 | 0.92 | 0.464848 | 0.455152 | 0.207164 |
| 6 | 0.3 | 1.0517 | -0.751695 | 0.565046 |
| 7 | 0.15 | 0.171424 | -0.021424 | 0.000458987 |
| 8 | 0.06 | 0.138821 | -0.0788213 | 0.0062128 |
| 9 | 0.4 | 0.464848 | -0.0648478 | 0.00420524 |
| 10 | 0.08 | -0.285013 | 0.365013 | 0.133235 |
| 11 | 0.05 | 1.01909 | -0.969093 | 0.939141 |
| 12 | 0.85 | 1.18211 | -0.332106 | 0.110294 |
| 13 | 0.61 | 0.85608 | -0.24608 | 0.0605552 |
| ⋮ | ⋮ | ⋮ | ⋮ | ⋮ |
| 1719 | 0.6 | 0.562656 | 0.0373442 | 0.00139459 |
| 1720 | 1.38 | 0.562656 | 0.817344 | 0.668052 |
| 1721 | 1.3 | 1.01909 | 0.280907 | 0.0789088 |
| 1722 | 0.65 | 0.432245 | 0.217755 | 0.0474172 |
| 1723 | 0.48 | 0.269232 | 0.210768 | 0.0444232 |
| 1724 | 0.03 | 1.34512 | -1.31512 | 1.72954 |
| 1725 | 0.2 | 0.49745 | -0.29745 | 0.0884768 |
| 1726 | 1.01 | 0.98649 | 0.0235098 | 0.000552711 |
| 1727 | 0.42 | 0.85608 | -0.43608 | 0.190165 |
| 1728 | 2.37 | -0.154602 | 2.5246 | 6.37362 |
| 1729 | 0.24 | 0.85608 | -0.61608 | 0.379554 |
| 1730 | 0.05 | 0.98649 | -0.93649 | 0.877014 |
perf_train=DataFrame(y_original=train[!,:Global_Sales],y_pred=train_pred)
| Row | y_original | y_pred |
|---|---|---|
| Float64 | Float64? | |
| 1 | 0.68 | 0.953888 |
| 2 | 0.46 | 0.758272 |
| 3 | 1.31 | 1.01909 |
| 4 | 1.24 | 1.0517 |
| 5 | 0.79 | 0.888682 |
| 6 | 1.14 | 0.595258 |
| 7 | 0.65 | 0.236629 |
| 8 | 0.03 | 0.758272 |
| 9 | 0.53 | 0.138821 |
| 10 | 0.66 | 0.758272 |
| 11 | 0.01 | 0.530053 |
| 12 | 0.11 | 0.171424 |
| 13 | 0.59 | 0.85608 |
| ⋮ | ⋮ | ⋮ |
| 5153 | 0.11 | 0.49745 |
| 5154 | 0.75 | 1.01909 |
| 5155 | 0.41 | 1.1495 |
| 5156 | 0.06 | 0.790874 |
| 5157 | 0.2 | 0.921285 |
| 5158 | 0.02 | 0.660464 |
| 5159 | 0.16 | 0.888682 |
| 5160 | 0.06 | 0.823477 |
| 5161 | 0.29 | 0.432245 |
| 5162 | 0.98 | -0.0893972 |
| 5163 | 0.11 | 0.921285 |
| 5164 | 0.18 | 0.85608 |
perf_train.hata=perf_train[!,:y_original]-perf_train[!,:y_pred]
5164-element Vector{Float64}:
-0.2738875433460043
-0.2982716556546376
0.2909071607568732
0.18830451280831184
-0.09868224744888221
0.5447415840881682
0.4133707115223414
-0.7282716556546376
0.39117865536802476
-0.09827165565463758
-0.5200531200147092
-0.06142399258053631
-0.266079599500321
⋮
-0.3874504720661479
-0.2690928392431269
-0.7395034310373716
-0.7308743036031984
-0.7212848953974436
-0.6404637118089538
-0.7286822474488822
-0.7634769515517597
-0.14224517616902582
1.069397191007953
-0.8112848953974435
-0.676079599500321
perf_train.hata_kare=perf_train.hata.*perf_train.hata
5164-element Vector{Float64}:
0.07501438640010938
0.0889659805669587
0.08462697617962525
0.035458589543975676
0.00973818596156242
0.2967433934348868
0.1708753451444868
0.530379604429947
0.1530207404155359
0.009657318305103663
0.2704552476370335
0.0037729068645337796
0.07079835327025123
⋮
0.15011786830428087
0.07241095613192733
0.5468653245160446
0.5341772476674602
0.5202519003285011
0.41019376614410263
0.530977817747154
0.582897055550768
0.020233690143357193
1.1436103521357002
0.6581831815000408
0.4570836248605145
perf_train
| Row | y_original | y_pred | hata | hata_kare |
|---|---|---|---|---|
| Float64 | Float64? | Float64 | Float64 | |
| 1 | 0.68 | 0.953888 | -0.273888 | 0.0750144 |
| 2 | 0.46 | 0.758272 | -0.298272 | 0.088966 |
| 3 | 1.31 | 1.01909 | 0.290907 | 0.084627 |
| 4 | 1.24 | 1.0517 | 0.188305 | 0.0354586 |
| 5 | 0.79 | 0.888682 | -0.0986822 | 0.00973819 |
| 6 | 1.14 | 0.595258 | 0.544742 | 0.296743 |
| 7 | 0.65 | 0.236629 | 0.413371 | 0.170875 |
| 8 | 0.03 | 0.758272 | -0.728272 | 0.53038 |
| 9 | 0.53 | 0.138821 | 0.391179 | 0.153021 |
| 10 | 0.66 | 0.758272 | -0.0982717 | 0.00965732 |
| 11 | 0.01 | 0.530053 | -0.520053 | 0.270455 |
| 12 | 0.11 | 0.171424 | -0.061424 | 0.00377291 |
| 13 | 0.59 | 0.85608 | -0.26608 | 0.0707984 |
| ⋮ | ⋮ | ⋮ | ⋮ | ⋮ |
| 5153 | 0.11 | 0.49745 | -0.38745 | 0.150118 |
| 5154 | 0.75 | 1.01909 | -0.269093 | 0.072411 |
| 5155 | 0.41 | 1.1495 | -0.739503 | 0.546865 |
| 5156 | 0.06 | 0.790874 | -0.730874 | 0.534177 |
| 5157 | 0.2 | 0.921285 | -0.721285 | 0.520252 |
| 5158 | 0.02 | 0.660464 | -0.640464 | 0.410194 |
| 5159 | 0.16 | 0.888682 | -0.728682 | 0.530978 |
| 5160 | 0.06 | 0.823477 | -0.763477 | 0.582897 |
| 5161 | 0.29 | 0.432245 | -0.142245 | 0.0202337 |
| 5162 | 0.98 | -0.0893972 | 1.0694 | 1.14361 |
| 5163 | 0.11 | 0.921285 | -0.811285 | 0.658183 |
| 5164 | 0.18 | 0.85608 | -0.67608 | 0.457084 |
function mape(perf_df)
mape=mean(abs.(perf_df.hata./perf_df.y_original))
return mape
end
mape (generic function with 1 method)
mape(perf_test)
5.232834591533603
mape(perf_train)
function rmse(perf_df)
rmse=sqrt(mean(perf_df.hata.*perf_df.hata))
return rmse
end
rmse (generic function with 1 method)
#Test hatalarının karşılaştırılması
println("Ortalama Mutlak Test Hatası: ",mean(abs.(perf_test.hata))) #MAE
println("Ortalama Mutlak Yüzde Test Hatası: ",mape(perf_test)) #MAPE
println("Kök Ortalama Kare Test Hatası: ", rmse(perf_test)) #RMSD
println("Hata Kareleri Ortalaması Test Hatası: ", mean(perf_test.hata_kare)) #MSE
Ortalama Mutlak Test Hatası: 0.7652378847189423 Ortalama Mutlak Yüzde Test Hatası: 5.232834591533603 Kök Ortalama Kare Test Hatası: 1.8733924713174903 Hata Kareleri Ortalaması Test Hatası: 3.509599351589054
Ortalama Mutlak Test Hatası
Bu değer, regresyon modelinin tahminlerinin gerçek değerlerden ortalama olarak ne kadar uzak olduğunu ölçer. Bu durumda, 0.76 olan MAE, modelin tahminlerinin ortalama olarak 0.76 birim uzaklıkta olduğunu belirtir.
Ortalama Mutlak Yüzde Test Hatası
MAPE, tahmin hatalarının yüzde cinsinden ortalama büyüklüğünü ölçer. Bu durumda, 5.23 olan MAPE değeri, modelin tahminlerinin genellikle %5.23 oranında hata yaptığını gösterir.
Kök Ortalama Kare Test Hatası
RMSE, tahmin hatalarının karesinin ortalamasının karekökünü alarak ölçer. Bu durumda, 1.87 olan RMSE, modelin tahminlerinin genellikle 1.87 birim kadar hata yaptığını belirtir.
Hata Kareleri Ortalaması Test Hatası
MSE, tahmin hatalarının karesinin ortalamasını ölçer. Bu durumda, 3.51 olan MSE, modelin tahminlerinin genellikle 3.51 birim kadar hata yaptığını belirtir.
#Test Hata dağılımı
histogram(perf_test.hata,title="Test Hata Analizi",ylabel="Frekans",xlabel="Hata",legend=true)
#Train Hataları Karşılaştırması
println("Ortalama Mutlak Train Hatası: ",mean(abs.(perf_train.hata)))
println("Ortalama Mutlak Yüzde Train Hatası: ",mape(perf_train))
println("Kök Ortalama Kare Train Hatası: ", rmse(perf_train))
println("Hata Kareleri Ortalaması Train Hatası: ", mean(perf_train.hata_kare))
Ortalama Mutlak Train Hatası: 0.7617959834053408 Ortalama Mutlak Yüzde Train Hatası: 5.818388582241637 Kök Ortalama Kare Train Hatası: 1.9074368912678197 Hata Kareleri Ortalaması Train Hatası: 3.6383154941694444
Ortalama Mutlak Train Hatası
Bu durumda, 0.76 olan MAE, modelin tahminlerinin ortalama olarak 0.76 birim uzaklıkta olduğunu belirtir.
Ortalama Mutlak Yüzde Train Hatası
Bu durumda, 5.23 olan MAPE değeri, modelin tahminlerinin genellikle %5.23 oranında hata yaptığını gösterir.
Kök Ortalama Kare Train Hatası
Bu durumda, 1.87 olan RMSE, modelin tahminlerinin genellikle 1.87 birim kadar hata yaptığını belirtir.
Hata Kareleri Ortalaması Train Hatası
Bu durumda, 3.51 olan MSE, modelin tahminlerinin genellikle 3.51 birim kadar hata yaptığını belirtir.
Test için yapılan hesaplamalar ile Train için yapılan hesaplamalar birbirine yakın çıkmıştır. Bu da genellikle modelin iyi genelleme yapabildiği anlamına gelir.
#Train Hata Dağılımı
histogram(perf_train.hata,title="Train Hata Analizi",ylabel="Frekans",xlabel="Hata",legend=false)
train
| Row | Name | Year_of_Release | Genre | Publisher | NA_Sales | EU_Sales | JP_Sales | Other_Sales | Global_Sales | Critic_Score | Critic_Count | User_Score | User_Count | Developer | Rating | Story Focus | Gameplay Focus | Series |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| String | Float64 | String15 | String | Float64 | Float64 | Float64 | Float64 | Float64 | Float64 | Float64 | Float64 | Float64 | String | String7 | String1? | String1? | String1? | |
| 1 | .hack//Mutation Part 2 | 2002.0 | Role-Playing | Atari | 0.23 | 0.18 | 0.2 | 0.06 | 0.68 | 76.0 | 24.0 | 8.9 | 81.0 | CyberConnect2 | T | x | missing | x |
| 2 | .hack//Outbreak Part 3 | 2002.0 | Role-Playing | Atari | 0.14 | 0.11 | 0.17 | 0.04 | 0.46 | 70.0 | 23.0 | 8.7 | 19.0 | CyberConnect2 | T | x | missing | x |
| 3 | [Prototype] | 2009.0 | Action | Activision | 0.84 | 0.35 | 0.0 | 0.12 | 1.31 | 78.0 | 83.0 | 7.8 | 356.0 | Radical Entertainment | M | missing | x | x |
| 4 | [Prototype] | 2009.0 | Action | Activision | 0.65 | 0.4 | 0.0 | 0.19 | 1.24 | 79.0 | 53.0 | 7.7 | 308.0 | Radical Entertainment | M | missing | x | x |
| 5 | [Prototype 2] | 2012.0 | Action | Activision | 0.48 | 0.24 | 0.0 | 0.07 | 0.79 | 74.0 | 69.0 | 7.0 | 173.0 | Radical Entertainment | M | missing | x | x |
| 6 | 007: Quantum of Solace | 2008.0 | Action | Activision | 0.43 | 0.51 | 0.02 | 0.19 | 1.14 | 65.0 | 42.0 | 6.6 | 47.0 | Treyarch | T | missing | x | missing |
| 7 | 007: Quantum of Solace | 2008.0 | Action | Activision | 0.29 | 0.28 | 0.01 | 0.07 | 0.65 | 54.0 | 11.0 | 7.5 | 26.0 | Treyarch | T | missing | x | missing |
| 8 | 007: Quantum of Solace | 2008.0 | Action | Activision | 0.01 | 0.01 | 0.0 | 0.0 | 0.03 | 70.0 | 18.0 | 6.3 | 55.0 | Treyarch | T | missing | x | missing |
| 9 | 007 Racing | 2000.0 | Racing | Electronic Arts | 0.3 | 0.2 | 0.0 | 0.03 | 0.53 | 51.0 | 16.0 | 4.6 | 14.0 | Eutechnyx | T | missing | x | missing |
| 10 | 100 Classic Books | 2008.0 | Misc | Nintendo | 0.12 | 0.52 | 0.0 | 0.02 | 0.66 | 70.0 | 7.0 | 6.0 | 12.0 | Genius Sonority Inc. | N/A | missing | x | missing |
| 11 | 15 Days | 2009.0 | Adventure | DTP Entertainment | 0.0 | 0.01 | 0.0 | 0.0 | 0.01 | 63.0 | 6.0 | 5.8 | 8.0 | DTP Entertainment | N/A | x | x | missing |
| 12 | 18 Wheeler: American Pro Trucker | 2002.0 | Racing | Acclaim Entertainment | 0.09 | 0.02 | 0.0 | 0.0 | 0.11 | 52.0 | 17.0 | 6.8 | 8.0 | Acclaim Studios Cheltenham | E | missing | x | missing |
| 13 | 2002 FIFA World Cup | 2002.0 | Sports | Electronic Arts | 0.21 | 0.17 | 0.16 | 0.06 | 0.59 | 73.0 | 19.0 | 5.6 | 18.0 | EA Sports | E | missing | x | missing |
| ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ |
| 5153 | Zombie Army Trilogy | 2015.0 | Shooter | Rebellion Developments | 0.05 | 0.05 | 0.0 | 0.01 | 0.11 | 62.0 | 10.0 | 7.2 | 40.0 | Rebellion | N/A | missing | x | missing |
| 5154 | Zone of the Enders | 2001.0 | Shooter | Konami Digital Entertainment | 0.3 | 0.24 | 0.13 | 0.08 | 0.75 | 78.0 | 21.0 | 7.4 | 49.0 | KCEJ | M | x | x | x |
| 5155 | Zone of the Enders: The 2nd Runner | 2003.0 | Simulation | Konami Digital Entertainment | 0.15 | 0.12 | 0.11 | 0.04 | 0.41 | 82.0 | 33.0 | 8.9 | 65.0 | KCEJ | M | x | x | x |
| 5156 | Zone of the Enders: The Fist of Mars | 2001.0 | Role-Playing | Konami Digital Entertainment | 0.04 | 0.02 | 0.0 | 0.0 | 0.06 | 71.0 | 12.0 | 9.0 | 9.0 | WinkySoft | E | x | x | x |
| 5157 | Zone of the Enders HD Collection | 2012.0 | Simulation | Konami Digital Entertainment | 0.14 | 0.03 | 0.01 | 0.02 | 0.2 | 75.0 | 21.0 | 8.8 | 20.0 | High Voltage Software | M | x | x | x |
| 5158 | ZooCube | 2002.0 | Puzzle | Acclaim Entertainment | 0.02 | 0.0 | 0.0 | 0.0 | 0.02 | 67.0 | 15.0 | 6.1 | 7.0 | PuzzleKings | E | missing | x | missing |
| 5159 | Zoo Keeper | 2004.0 | Puzzle | Ignition Entertainment | 0.1 | 0.01 | 0.05 | 0.01 | 0.16 | 74.0 | 40.0 | 7.5 | 13.0 | Buddiez, Inc. | E | missing | x | missing |
| 5160 | Zoo Tycoon 2 | 2004.0 | Strategy | Microsoft Game Studios | 0.0 | 0.05 | 0.0 | 0.01 | 0.06 | 72.0 | 34.0 | 8.1 | 43.0 | Blue Fang Games | E | missing | x | missing |
| 5161 | Zoo Tycoon 2 DS | 2008.0 | Strategy | THQ | 0.24 | 0.03 | 0.0 | 0.02 | 0.29 | 60.0 | 17.0 | 5.4 | 7.0 | Altron | E | missing | x | missing |
| 5162 | Zoo Tycoon DS | 2005.0 | Strategy | THQ | 0.86 | 0.03 | 0.01 | 0.08 | 0.98 | 44.0 | 19.0 | 6.6 | 25.0 | Altron | E | missing | x | missing |
| 5163 | Zubo | 2008.0 | Misc | Electronic Arts | 0.08 | 0.02 | 0.0 | 0.01 | 0.11 | 75.0 | 19.0 | 7.6 | 75.0 | EA Bright Light | E10+ | missing | x | missing |
| 5164 | Zumba Fitness Rush | 2012.0 | Sports | 505 Games | 0.0 | 0.16 | 0.0 | 0.02 | 0.18 | 73.0 | 7.0 | 6.2 | 5.0 | Majesco Games, Majesco | E10+ | missing | x | missing |
function cross_validation(games,k,fm)
a=collect(Kfold(size(games)[1],k))
hata=[]
for i in 1:k
row=a[i]
temp_train=games[row,:]
temp_test=games[setdiff(1:end,row),:]
linreg=lm(fm,temp_train)
perf_test=DataFrame(y_original=temp_test[!,:Global_Sales],y_pred=predict(linreg,temp_test))
perf_test.hata=perf_test[!,:y_original]-perf_test[!,:y_pred]
println("$i. set için ortalama hata: ",mean(abs.(perf_test.hata)))
hata=push!(hata,mean(abs.(perf_test.hata)))
end
println("Ortalama Hata: ",mean(hata))
end
cross_validation (generic function with 1 method)
size(games)
(6894, 18)
a=collect(Kfold(size(games)[1],10))
a[5]
#temp_test=ny[setdiff(1:end,a[1]),:]
#temp_train=ny[a[1],:]
6205-element Vector{Int64}:
1
2
3
4
5
6
7
8
9
11
12
13
14
⋮
6882
6883
6884
6885
6887
6888
6889
6890
6891
6892
6893
6894
fm
FormulaTerm Response: Global_Sales(unknown) Predictors: Critic_Score(unknown)
cross_validation(games,10,fm)
1. set için ortalama hata: 0.7678744765435822 2. set için ortalama hata: 0.8069933488776654 3. set için ortalama hata: 0.7803822896747208 4. set için ortalama hata: 0.6981824454060531 5. set için ortalama hata: 0.7644285535871289 6. set için ortalama hata: 0.815012648187349 7. set için ortalama hata: 0.7361183593969763 8. set için ortalama hata: 0.7900774197878563 9. set için ortalama hata: 0.7750776179541162 10. set için ortalama hata: 0.7423613696018626 Ortalama Hata: 0.7676508529017311
using CSV
using DataFrames
games2 = CSV.read("Tagged-Data-Final (1).csv",DataFrame)
| NA_Sales | EU_Sales | JP_Sales | Other_Sales | Global_Sales | Critic_Score | Critic_Count | |
|---|---|---|---|---|---|---|---|
| Float64 | Float64 | Float64 | Float64 | Float64 | Float64 | Float64 | |
| 1 | 0.49 | 0.38 | 0.26 | 0.13 | 1.27 | 75.0 | 35.0 |
| 2 | 0.23 | 0.18 | 0.2 | 0.06 | 0.68 | 76.0 | 24.0 |
| 3 | 0.14 | 0.11 | 0.17 | 0.04 | 0.46 | 70.0 | 23.0 |
| 4 | 0.84 | 0.35 | 0.0 | 0.12 | 1.31 | 78.0 | 83.0 |
| 5 | 0.65 | 0.4 | 0.0 | 0.19 | 1.24 | 79.0 | 53.0 |
| 6 | 0.48 | 0.24 | 0.0 | 0.07 | 0.79 | 74.0 | 69.0 |
| 7 | 0.36 | 0.28 | 0.0 | 0.1 | 0.74 | 79.0 | 39.0 |
| 8 | 0.07 | 0.03 | 0.0 | 0.01 | 0.11 | 76.0 | 12.0 |
| 9 | 0.82 | 0.51 | 0.01 | 0.14 | 1.48 | 65.0 | 69.0 |
| 10 | 0.43 | 0.51 | 0.02 | 0.19 | 1.14 | 65.0 | 42.0 |
| 11 | 0.29 | 0.28 | 0.01 | 0.07 | 0.65 | 54.0 | 11.0 |
| 12 | 0.01 | 0.01 | 0.0 | 0.0 | 0.03 | 70.0 | 18.0 |
| 13 | 0.51 | 0.35 | 0.0 | 0.06 | 0.92 | 61.0 | 11.0 |
| 14 | 0.3 | 0.2 | 0.0 | 0.03 | 0.53 | 51.0 | 16.0 |
| 15 | 0.12 | 0.52 | 0.0 | 0.02 | 0.66 | 70.0 | 7.0 |
| 16 | 0.0 | 0.01 | 0.0 | 0.0 | 0.01 | 63.0 | 6.0 |
| 17 | 0.0 | 0.25 | 0.0 | 0.04 | 0.3 | 79.0 | 30.0 |
| 18 | 0.07 | 0.06 | 0.0 | 0.02 | 0.15 | 52.0 | 33.0 |
| 19 | 0.05 | 0.01 | 0.0 | 0.0 | 0.06 | 51.0 | 40.0 |
| 20 | 0.2 | 0.15 | 0.0 | 0.05 | 0.4 | 61.0 | 11.0 |
| 21 | 0.09 | 0.02 | 0.0 | 0.0 | 0.11 | 52.0 | 17.0 |
| 22 | 0.08 | 0.0 | 0.0 | 0.01 | 0.08 | 38.0 | 5.0 |
| 23 | 0.21 | 0.17 | 0.16 | 0.06 | 0.59 | 73.0 | 19.0 |
| 24 | 0.14 | 0.04 | 0.0 | 0.01 | 0.19 | 79.0 | 17.0 |
| 25 | 0.04 | 0.01 | 0.0 | 0.0 | 0.05 | 78.0 | 9.0 |
| 26 | 0.3 | 0.64 | 0.07 | 0.22 | 1.23 | 82.0 | 56.0 |
| 27 | 0.32 | 0.42 | 0.02 | 0.09 | 0.85 | 83.0 | 61.0 |
| 28 | 0.09 | 0.22 | 0.03 | 0.12 | 0.46 | 69.0 | 11.0 |
| 29 | 0.23 | 0.15 | 0.01 | 0.04 | 0.42 | 70.0 | 19.0 |
| 30 | 0.15 | 0.36 | 0.01 | 0.09 | 0.61 | 73.0 | 33.0 |
| ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ | ⋮ |
using Lathe.preprocess: TrainTestSplit
train,test=TrainTestSplit(games,.60)
(4155×18 DataFrame. Omitted printing of 15 columns │ Row │ Name │ Year_of_Release │ Genre │ │ │ String │ Float64 │ String15 │ ├──────┼────────────────────────────────────┼─────────────────┼──────────────┤ │ 1 │ .hack//Infection Part 1 │ 2002.0 │ Role-Playing │ │ 2 │ [Prototype 2] │ 2012.0 │ Action │ │ 3 │ [Prototype 2] │ 2012.0 │ Action │ │ 4 │ 007: Quantum of Solace │ 2008.0 │ Action │ │ 5 │ 007: Quantum of Solace │ 2008.0 │ Action │ │ 6 │ 007: The World is not Enough │ 2000.0 │ Action │ │ 7 │ 100 Classic Books │ 2008.0 │ Misc │ │ 8 │ 15 Days │ 2009.0 │ Adventure │ │ 9 │ 1701 A.D. │ 2006.0 │ Simulation │ │ 10 │ 18 Wheeler: American Pro Trucker │ 2002.0 │ Racing │ ⋮ │ 4145 │ Zero Escape: Zero Time Dilemma │ 2016.0 │ Adventure │ │ 4146 │ Zoids Assault │ 2007.0 │ Strategy │ │ 4147 │ Zombie Army Trilogy │ 2015.0 │ Shooter │ │ 4148 │ ZombiU │ 2012.0 │ Action │ │ 4149 │ Zone of the Enders: The 2nd Runner │ 2003.0 │ Simulation │ │ 4150 │ Zoo Keeper │ 2004.0 │ Puzzle │ │ 4151 │ Zoo Tycoon 2 DS │ 2008.0 │ Strategy │ │ 4152 │ Zoo Tycoon DS │ 2005.0 │ Strategy │ │ 4153 │ Zubo │ 2008.0 │ Misc │ │ 4154 │ Zumba Fitness │ 2010.0 │ Sports │ │ 4155 │ Zumba Fitness Core │ 2012.0 │ Misc │, 2739×18 DataFrame. Omitted printing of 15 columns │ Row │ Name │ Year_of_Release │ Genre │ │ │ String │ Float64 │ String15 │ ├──────┼──────────────────────────────────────┼─────────────────┼──────────────┤ │ 1 │ .hack//Mutation Part 2 │ 2002.0 │ Role-Playing │ │ 2 │ .hack//Outbreak Part 3 │ 2002.0 │ Role-Playing │ │ 3 │ [Prototype] │ 2009.0 │ Action │ │ 4 │ [Prototype] │ 2009.0 │ Action │ │ 5 │ [Prototype 2] │ 2012.0 │ Action │ │ 6 │ 007: Quantum of Solace │ 2008.0 │ Action │ │ 7 │ 007: Quantum of Solace │ 2008.0 │ Action │ │ 8 │ 007 Racing │ 2000.0 │ Racing │ │ 9 │ 187: Ride or Die │ 2005.0 │ Racing │ │ 10 │ 187: Ride or Die │ 2005.0 │ Racing │ ⋮ │ 2729 │ Zathura │ 2005.0 │ Adventure │ │ 2730 │ Zero Escape: Virtue's Last Reward │ 2012.0 │ Adventure │ │ 2731 │ Zombie Army Trilogy │ 2015.0 │ Shooter │ │ 2732 │ Zone of the Enders │ 2001.0 │ Shooter │ │ 2733 │ Zone of the Enders: The Fist of Mars │ 2001.0 │ Role-Playing │ │ 2734 │ Zone of the Enders HD Collection │ 2012.0 │ Simulation │ │ 2735 │ Zone of the Enders HD Collection │ 2012.0 │ Simulation │ │ 2736 │ ZooCube │ 2002.0 │ Puzzle │ │ 2737 │ Zoo Tycoon 2 │ 2004.0 │ Strategy │ │ 2738 │ Zumba Fitness: World Party │ 2013.0 │ Misc │ │ 2739 │ Zumba Fitness Rush │ 2012.0 │ Sports │)
#feature selection (Train)
features = Array(train[:,[:Critic_Score]])
labels = Array(train[:,:Global_Sales])
features = float.(features)
labels1=string.(labels)
4155-element Vector{String}:
"1.27"
"0.79"
"0.11"
"1.48"
"0.65"
"0.92"
"0.66"
"0.01"
"0.3"
"0.11"
"0.08"
"0.59"
"0.05"
⋮
"0.08"
"0.06"
"0.09"
"0.2"
"1.01"
"0.41"
"0.16"
"0.29"
"0.98"
"0.11"
"2.37"
"0.05"
# feature_selection (Test)
features_test = Array(test[:,[:Critic_Score]])
labels_test = Array(test[:,:Global_Sales])
features_test = float.(features_test)
labels_test1=string.(labels_test)
2739-element Vector{String}:
"0.68"
"0.46"
"1.31"
"1.24"
"0.74"
"1.14"
"0.03"
"0.53"
"0.15"
"0.06"
"0.4"
"0.19"
"1.23"
⋮
"0.03"
"0.12"
"0.03"
"0.11"
"0.75"
"0.06"
"0.42"
"0.2"
"0.02"
"0.06"
"0.24"
"0.18"
using NearestNeighbors
kdtree=KDTree(features')
KDTree{StaticArraysCore.SVector{1, Float64}, Euclidean, Float64, StaticArraysCore.SVector{1, Float64}}
Number of points: 4155
Dimensions: 1
Metric: Euclidean(0.0)
Reordered: true
idxs,dists=knn(kdtree, features',5, true)
([[354, 2381, 3301, 2807, 2921], [732, 632, 438, 722, 1645], [277, 981, 2817, 3621, 3874], [2899, 2736, 3336, 469, 3223], [865, 3557, 919, 1825, 2377], [3503, 796, 1838, 2862, 2461], [3754, 295, 725, 1314, 334], [230, 3403, 3284, 106, 4052], [2691, 1067, 1751, 1507, 860], [3964, 2376, 565, 1590, 1449] … [2503, 962, 4146, 1384, 3184], [1217, 43, 698, 691, 3925], [4148, 2750, 1700, 2676, 1896], [3108, 1871, 1859, 3663, 1493], [732, 632, 438, 722, 1645], [4031, 216, 214, 1222, 2744], [1464, 1554, 2156, 426, 4152], [354, 2381, 3301, 2807, 2921], [3719, 4154, 3346, 1215, 1094], [4148, 2750, 1700, 2676, 1896]], [[0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0] … [0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0]])
idxs
4155-element Vector{Vector{Int64}}:
[354, 2381, 3301, 2807, 2921]
[732, 632, 438, 722, 1645]
[277, 981, 2817, 3621, 3874]
[2899, 2736, 3336, 469, 3223]
[865, 3557, 919, 1825, 2377]
[3503, 796, 1838, 2862, 2461]
[3754, 295, 725, 1314, 334]
[230, 3403, 3284, 106, 4052]
[2691, 1067, 1751, 1507, 860]
[3964, 2376, 565, 1590, 1449]
[1670, 2152, 475, 695, 2712]
[1346, 1639, 126, 1343, 1348]
[2415, 30, 144, 4078, 3107]
⋮
[678, 1878, 748, 162, 1133]
[2567, 2585, 1052, 1051, 257]
[2503, 962, 4146, 1384, 3184]
[1217, 43, 698, 691, 3925]
[4148, 2750, 1700, 2676, 1896]
[3108, 1871, 1859, 3663, 1493]
[732, 632, 438, 722, 1645]
[4031, 216, 214, 1222, 2744]
[1464, 1554, 2156, 426, 4152]
[354, 2381, 3301, 2807, 2921]
[3719, 4154, 3346, 1215, 1094]
[4148, 2750, 1700, 2676, 1896]
dists
4155-element Vector{Vector{Float64}}:
[0.0, 0.0, 0.0, 0.0, 0.0]
[0.0, 0.0, 0.0, 0.0, 0.0]
[0.0, 0.0, 0.0, 0.0, 0.0]
[0.0, 0.0, 0.0, 0.0, 0.0]
[0.0, 0.0, 0.0, 0.0, 0.0]
[0.0, 0.0, 0.0, 0.0, 0.0]
[0.0, 0.0, 0.0, 0.0, 0.0]
[0.0, 0.0, 0.0, 0.0, 0.0]
[0.0, 0.0, 0.0, 0.0, 0.0]
[0.0, 0.0, 0.0, 0.0, 0.0]
[0.0, 0.0, 0.0, 0.0, 0.0]
[0.0, 0.0, 0.0, 0.0, 0.0]
[0.0, 0.0, 0.0, 0.0, 0.0]
⋮
[0.0, 0.0, 0.0, 0.0, 0.0]
[0.0, 0.0, 0.0, 0.0, 0.0]
[0.0, 0.0, 0.0, 0.0, 0.0]
[0.0, 0.0, 0.0, 0.0, 0.0]
[0.0, 0.0, 0.0, 0.0, 0.0]
[0.0, 0.0, 0.0, 0.0, 0.0]
[0.0, 0.0, 0.0, 0.0, 0.0]
[0.0, 0.0, 0.0, 0.0, 0.0]
[0.0, 0.0, 0.0, 0.0, 0.0]
[0.0, 0.0, 0.0, 0.0, 0.0]
[0.0, 0.0, 0.0, 0.0, 0.0]
[0.0, 0.0, 0.0, 0.0, 0.0]
c=labels[hcat(idxs...)]
5×4155 Matrix{Float64}:
0.15 0.29 0.32 0.13 0.31 0.17 … 0.29 0.21 0.33 0.15 0.04 1.01
1.23 0.16 0.41 0.19 0.74 0.09 0.16 0.24 0.02 1.23 2.37 0.07
0.08 0.58 0.3 0.28 0.03 0.04 0.58 1.38 0.18 0.08 0.01 1.65
1.52 0.21 1.27 0.02 0.5 0.21 0.21 0.66 0.04 1.52 0.02 0.09
0.04 0.14 0.14 1.06 0.64 0.13 0.14 0.05 0.98 0.04 0.09 0.4
using DataStructures
possible_labels = map(i -> length(Set(c[:, i])), 1:size(c, 2))
4155-element Vector{Int64}:
5
5
5
5
5
5
5
5
5
5
5
4
5
⋮
5
5
4
5
5
5
5
5
5
5
5
5
possible_labels=map(i->counter(c[:,i]),1:size(c,2))
4155-element Vector{Accumulator{Float64, Int64}}:
Accumulator(0.15 => 1, 0.04 => 1, 1.23 => 1, 1.52 => 1, 0.08 => 1)
Accumulator(0.58 => 1, 0.16 => 1, 0.29 => 1, 0.21 => 1, 0.14 => 1)
Accumulator(0.3 => 1, 1.27 => 1, 0.32 => 1, 0.41 => 1, 0.14 => 1)
Accumulator(0.28 => 1, 0.02 => 1, 0.13 => 1, 1.06 => 1, 0.19 => 1)
Accumulator(0.74 => 1, 0.03 => 1, 0.5 => 1, 0.31 => 1, 0.64 => 1)
Accumulator(0.04 => 1, 0.17 => 1, 0.09 => 1, 0.13 => 1, 0.21 => 1)
Accumulator(0.15 => 1, 0.03 => 1, 0.11 => 1, 0.35 => 1, 1.63 => 1)
Accumulator(0.76 => 1, 0.33 => 1, 0.26 => 1, 0.11 => 1, 0.21 => 1)
Accumulator(0.3 => 1, 2.43 => 1, 1.11 => 1, 1.65 => 1, 0.11 => 1)
Accumulator(0.76 => 1, 0.27 => 1, 0.13 => 1, 0.06 => 1, 0.19 => 1)
Accumulator(0.18 => 1, 0.07 => 1, 0.02 => 1, 0.16 => 1, 1.56 => 1)
Accumulator(0.2 => 2, 0.71 => 1, 0.07 => 1, 0.14 => 1)
Accumulator(0.58 => 1, 1.24 => 1, 0.79 => 1, 0.49 => 1, 0.97 => 1)
⋮
Accumulator(2.86 => 1, 0.2 => 1, 4.82 => 1, 0.21 => 1, 0.19 => 1)
Accumulator(0.15 => 1, 0.72 => 1, 0.49 => 1, 0.06 => 1, 1.46 => 1)
Accumulator(0.3 => 1, 0.01 => 1, 0.04 => 1, 0.09 => 2)
Accumulator(0.43 => 1, 0.02 => 1, 0.89 => 1, 0.11 => 1, 0.06 => 1)
Accumulator(0.4 => 1, 1.01 => 1, 1.65 => 1, 0.07 => 1, 0.09 => 1)
Accumulator(0.2 => 1, 0.17 => 1, 0.83 => 1, 0.62 => 1, 0.57 => 1)
Accumulator(0.58 => 1, 0.16 => 1, 0.29 => 1, 0.21 => 1, 0.14 => 1)
Accumulator(0.24 => 1, 0.66 => 1, 1.38 => 1, 0.21 => 1, 0.05 => 1)
Accumulator(0.98 => 1, 0.18 => 1, 0.33 => 1, 0.04 => 1, 0.02 => 1)
Accumulator(0.15 => 1, 0.04 => 1, 1.23 => 1, 1.52 => 1, 0.08 => 1)
Accumulator(0.04 => 1, 2.37 => 1, 0.01 => 1, 0.02 => 1, 0.09 => 1)
Accumulator(0.4 => 1, 1.01 => 1, 1.65 => 1, 0.07 => 1, 0.09 => 1)
using MLBase
predictions_NN_float = float.(predictions_NN)
4155-element Vector{Float64}:
5.0
5.0
5.0
5.0
5.0
5.0
5.0
5.0
5.0
5.0
5.0
4.0
5.0
⋮
5.0
5.0
4.0
5.0
5.0
5.0
5.0
5.0
5.0
5.0
5.0
5.0
labels_int = convert(Vector{Int64}, round.(labels))
4155-element Vector{Int64}:
1
1
0
1
1
1
1
0
0
0
0
1
0
⋮
0
0
0
0
1
0
0
0
1
0
2
0
confusion_matrix=MLBase.roc(Array(labels_int),Array(predictions_NN))
ROCNums{Int64}
p = 1468
n = 2687
tp = 31
tn = 0
fp = 2687
fn = 0
using Pkg
Pkg.add("Clustering")
Pkg.add("Distances")
Resolving package versions... No Changes to `C:\Users\atama\.julia\environments\v1.9\Project.toml` No Changes to `C:\Users\atama\.julia\environments\v1.9\Manifest.toml` Resolving package versions... No Changes to `C:\Users\atama\.julia\environments\v1.9\Project.toml` No Changes to `C:\Users\atama\.julia\environments\v1.9\Manifest.toml`
using Plots
scatter(games2.Global_Sales, games2.Critic_Score,color=:green, legend=false)
features = collect(Matrix(games2[:, 1:4])'); # features to use for clustering
k=4
result = kmeans(features, k, display=:iter) # run K-means for the 3 clusters
Iters objv objv-change | affected
-------------------------------------------------------------
0 5.107061e+03
1 3.814681e+03 -1.292380e+03 | 4
2 3.557556e+03 -2.571250e+02 | 4
3 3.455271e+03 -1.022852e+02 | 4
4 3.432209e+03 -2.306176e+01 | 3
5 3.431680e+03 -5.291999e-01 | 2
6 3.431478e+03 -2.019576e-01 | 2
7 3.431427e+03 -5.089331e-02 | 2
8 3.431372e+03 -5.472640e-02 | 2
9 3.431344e+03 -2.769451e-02 | 2
10 3.431331e+03 -1.290538e-02 | 2
11 3.431330e+03 -1.285305e-03 | 0
12 3.431330e+03 0.000000e+00 | 0
K-means converged with 12 iterations (objv = 3431.3301479307993)
KmeansResult{Matrix{Float64}, Float64, Int64}([0.19611210982186345 1.4649001536098312 15.497000000000003 4.405862068965517; 0.11142997221767982 0.8471274961597537 10.679000000000002 3.1559770114942527; 0.034657623794737705 0.1816129032258064 3.5470000000000006 0.8535632183908042; 0.039802255270469024 0.295437788018433 3.0159999999999996 1.1333333333333333], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1 … 1, 1, 1, 1, 1, 1, 2, 1, 1, 1], [0.2174147714844803, 0.03359628807215537, 0.021468211589069003, 0.4791401024209095, 0.3130473911935842, 0.0992356409075878, 0.06010001417119251, 0.024624429925397623, 0.558741753017413, 0.23633582067552505 … 0.04621748434605413, 0.020649139845319242, 0.04432292641175131, 0.01015026748055467, 0.4496018281930929, 0.023930787173313955, 0.27969930321070446, 0.006048763966908358, 0.045018971517160694, 0.04241228741845236], [6119, 651, 10, 87], [6119, 651, 10, 87], 3431.3301479307993, 12, true)
result.centers
4×4 Matrix{Float64}:
0.196112 1.4649 15.497 4.40586
0.11143 0.847127 10.679 3.15598
0.0346576 0.181613 3.547 0.853563
0.0398023 0.295438 3.016 1.13333
result.counts
4-element Vector{Int64}:
6119
651
10
87
result.assignments
6867-element Vector{Int64}:
1
1
1
1
1
1
1
1
1
1
1
1
1
⋮
1
1
1
1
1
1
1
1
2
1
1
1
# plot with the point color mapped to the assigned cluster index
scatter(games2.Global_Sales, games2.Critic_Score, marker_z=result.assignments, legend=false)
Dünya çapında yaklaşık 30 milyon satışa sahip oyunlar için, eleştirmen puanının ortalama 80 puan olduğu söylenebilir.
scatter(games2.NA_Sales, games2.EU_Sales, games2.Critic_Score, marker_z=result.assignments, legend=false)
Burada ise dünya genelini ele almak yerine, Kuzey Amerika ve Avrupa'daki satış sayıları incelenmiştir. Satış sayısı ortalama 22,5 milyon olan oyunların eleştirmen puanı 60 civarındadır.